<?php
class OthersController extends AppController{
	function insert($data){
		$this->data['Other']['claimid']=$data[0];
		$this->data['Other']['particular']=$data[1];
		$this->data['Other']['quantity']=$data[2];
		$this->data['Other']['unit_price']=str_replace(',', '', $data[3]);
		$this->data['Other']['actual_charge']=str_replace(',', '', $data[4]);
		$this->data['Other']['claim_hospital']=str_replace(',', '', $data[5]);
		$this->data['Other']['claim_patient']=str_replace(',', '', $data[6]);
		$this->data['Other']['service_type']=$data[7];
		$this->data['Other']['status']=1;
				
		$this->Other->create();
		$this->Other->save($this->data);
	}
	function update(){
		
	}
	function setStatus($id, $status){
		$this->data['Other']['id']=$id;
		$this->data['Other']['status']=$status;
		
		$this->Other->save($this->data);
	}
}
?>